Linux Journal February 2015 by Linux Journal

Linux Journal February 2015 by Linux Journal

Author:Linux Journal
Language: eng
Format: mobi, epub
Tags: Web, DevAssistant, mhddfs, Drupal, vulnerability, Homebrew, Django, Node.js, Listen Audiobook Player, SQL injection, JavaScript, Drupageddon, Linux, Elementary OS, Security, astronomy, Distro Astro, Cloud, UBOS
Publisher: Belltown Media
Published: 2015-01-28T08:00:00+00:00


Please send information about releases of Linux-related products to

[email protected]

or New Products c/o Linux Journal, PO Box 980985, Houston, TX 77098.

Submissions are edited for length and content.

FEATURES

JavaScript All the Way Down

Use JavaScript for server and client programming.

FEDERICO KEREKI

There is a well known story about a scientist who gave a talk about the Earth and its place in the solar system. At the end of the talk, a woman refuted him with “That’s rubbish; the Earth is really like a flat dish, supported on the back of a turtle.” The scientist smiled and asked back “But what’s the turtle standing on?”, to which the woman, realizing the logical trap, answered, “It’s very simple: it’s turtles all the way down!” No matter the verity of the anecdote, the identity of the scientist (Bertrand Russell or William James are sometimes mentioned), or even if they were turtles or tortoises, today we may apply a similar solution to Web development, with “JavaScript all the way down”.

If you are going to develop a Web site, for client-side development, you could opt for Java applets, ActiveX controls, Adobe Flash animations and, of course, plain JavaScript. On the other hand, for server-side coding, you could go with C# (.Net), Java, Perl, PHP and more, running on servers, such as Apache, Internet Information Server, Nginx, Tomcat and the like. Currently, JavaScript allows you to do away with most of this and use a single programming language, both on the client and the server sides, and with even a JavaScript-based server. This way of working even has produced a totally JavaScript-oriented acronym along the lines of the old LAMP (Linux+Apache+MySQL+PHP) one: MEAN, which stands for MongoDB (a NoSQL database you can access with JavaScript), Express (a Node.js module to structure your server-side code), Angular.JS (Google’s Web development framework for client-side code) and Node.js.

In this article, I cover several JavaScript tools for writing, testing and deploying Web applications, so you can consider whether you want to give a twirl to a “JavaScript all the way down” Web stack.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.